package com.zwd.cases.demo.gof23.component.demo2;

/**
 * @Description TODO
 * @Author zhengwd
 * @Date 2023/4/19 0:35
 **/
public class Finery extends Person {

    protected Person person;

    /**
     * 打扮
     * @param person
     */
    public void decorate(Person person) {
        this.person = person;
    }

    @Override
    public void show() {
        if (person != null) {
            person.show();
        }
    }
}
